package com.scraper.articles.web.dao;

import com.scraper.articles.web.model.Article;

import java.util.List;

public interface ArticleDao {

    /*
     * CREATE and UPDATE
     */
    void saveArticleList(List<Article> articles); // create and update

    boolean isArticleProcessed(String url);

    /*
     * READ
     */
    List<Article> listArticles();

    Article getArticle(Long id);

    List<Article> listArticles(Long id);

    void deleteArticle(Long id);
}
